package travlefate.story.base;

import android.os.Bundle;

import me.imid.swipebacklayout.lib.SwipeBackLayout;
import me.imid.swipebacklayout.lib.app.SwipeBackActivity;

/**
 * @author keven
 * @data 15/12/23 上午10:30
 * @package travlefate.story.base
 */

public abstract class BaseSwipeActivity extends SwipeBackActivity {

    private SwipeBackLayout mBackLayout;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        mBackLayout = getSwipeBackLayout();
        mBackLayout.setEdgeTrackingEnabled(SwipeBackLayout.EDGE_LEFT);

        initLayout();

        initViews();

        initClick();

        initDatas();
    }

    protected abstract void initDatas();

    protected abstract void initClick();


    protected abstract void initViews();

    protected abstract void initLayout();
}
